package com.demo.villageresidence.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_notice
 */
@TableName(value ="tb_notice")
@Data
public class Notice implements Serializable {
    /**
     * 公告id
     */
    @TableId(type = IdType.AUTO)
    private Integer noticeId;

    /**
     * 公告标题
     */
    private String noticeTitle;

    /**
     * 公告内容
     */
    private String noticeContent;


    /**
     * 公告摘要
     */
    private String noticeDigest;

    /**
     * 发布时间
     */
    private LocalDateTime annceTime;

    /**
     * 管理员id,外键（admin表-admin_id）
     */
    private Integer adminId;

    @TableField(exist = false)
    private Admin admin;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}